<%-------------------------------------------------------------------
 * 页面名称：amendAuditRuleFirst.jsp
 * 功能描述：修改审核规则－选择审核级别
 * Action  : /amendAuditSteps.do
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="struts-html.tld" prefix="html"%>
<%@ taglib uri="struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="struts-logic.tld" prefix="logic"%>
<%@ taglib uri="struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
String path = request.getContextPath();
%>
<script type='text/javascript' src='<%=path%>/js/vnv/commonForManage.js'></script>
<script type="text/javascript" language="javascript">
function getRadioValue(radioObject){
	if(radioObject.length==undefined){
		if(radioObject.checked) return radioObject.value;
	}else{
		for(var i=0;i<radioObject.length;i++){
			if(radioObject[i].checked) return radioObject[i].value;
		}
	}
	return undefined;
}
function todo(action,id){
	if(id!=undefined){
		document.forms[0].setAuditStep.value="true";
		document.forms[0].action=action;
		document.forms[0].submit();
	}else{
		alert("请先选择一个审核步骤");
	}
}
function add(){
	if(emptyValidate(getObj("name"),"规则名称") != ""){
		return false;
	}
	document.forms[0].setAuditStep.value="true";
	document.forms[0].action="<%=path%>/page/audit/preAddAuditStep.do";
	document.forms[0].submit();
}
	
function sure(){
	if(checkNecessaryInput(document.forms["0"])){
		document.forms[0].submit();
	}
}
</script>
<div id="main">
	<div class="content_right">
		<div style="width:745px;margin-left:10px;">
			<div class="titleinfo">
				修改审核规则
			</div>
			<div class="edit_pass">
				<html:form action="/amendAuditSteps.do">
					<html:hidden property="setAuditStep" />
					<html:hidden property="id" />
					<table width="100%" border="0" align="center" cellpadding="5"
						cellspacing="1">
						<tr>
							<td width="22%" align="right">
								需要审核的交易类型：
							</td>
							<td width="78%" class="font_blue">
								<bean:write name="type" property="name" />
								<html:hidden property="transactionTypeId" />
							</td>
						</tr>
						<tr>
							<td align="right">
								选择几级审核：
							</td>
							<td class="font_blue">
								<html:select property="auditStepsCount">
									<html:optionsCollection name="initAuditSteps" label="name"
										value="id" />
								</html:select>
							</td>
						</tr>
						<tr>
							<td height="55" align="right">
								&nbsp;
							</td>
							<td class="font_blue">
								<input name="setStep" type="button" class="button_style_m"
									onclick="sure();" value="设置审核步骤" />
								<input name="return" type="button" class="button_style"
									onclick="location.href='<%=path%>/page/audit/getAuditRuleList.do';"
									value="返 回" />
							</td>
						</tr>
					</table>
				</html:form>
			</div>
		</div>
	</div>
</div>
